<?php
error_reporting(E_WARNING);
include_once '../includes/metodos.php';
include_once 'action.php';
connectSql();
checkUser();

if(!empty($_POST['cmd']) && $_POST['cmd']=='insert'){
	insert();
}
?>

<form method="post" action="new.php">
  <table width="70%" border="0">
    <td>
    </td>
    <tr>
      <td><span class="Style6">Nome:*</span></td>
      <td><span class="Style6">
        <label>
        <input name="nome" type="text" id="nome" size="56"/>
        </label>
      </span></td>
    </tr>
    <tr>
      <td><span class="Style6">Sobrenome:*</span></td>
      <td><span class="Style6">
        <label>
        <input name="sobrenome" type="text" id="sobrenome" size="56" />
        </label>
      </span></td>
    </tr>
    <tr>
      <tr>
      <td><span class="Style6">Rua:</span></td>
      <td><span class="Style6">
        <label>
        <input name="rua" type="text" id="rua" size="35"/>
        </label>&nbsp;&nbsp;N&uacutemero:&nbsp;
			<input name="numero" type="text" id="numero" size="4"/>
      </span></td>
    </tr>
    <tr>
      <td><span class="Style6">Bairro:</span></td>
      <td><span class="Style6">
        <label>
        <input name="bairro" type="text" id="bairro" />
        </label>&nbsp;&nbsp;Complemento:&nbsp;
			<input name="complemento" type="text" id="complemento" size="14"/>
      </span></td>
    </tr>
    <tr>
      <td><span class="Style6">Telefone:</span></td>
      <td><span class="Style6">
        <label>
        <input name="telefone" type="text" id="telefone" />
        </label>&nbsp;&nbsp;Celular:&nbsp;
	<input name="celular" type="text" id="celular" />
      </span></td>
    </tr>
    <tr>
      <td><span class="Style6">E-mail:</span></td>
      <td><span class="Style6">
        <label>
        <input name="email" type="text" id="email" size="56" />
        </label>
      </span></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td><span class="Style6">
        <label>
		<input type="hidden" name="cmd" value="insert"/>
        <input type="submit" name="Submit" value="Salvar" />
        </label>
      </span></td>
    </tr>
  </table>
</form>
